<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://amc.af.mil/portal-el" prefix="portal" %>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="authz" %>

<portal:contentMenu>

    <authz:authorize ifAnyGranted="ROLE_EC">
        <%--<portal:menuItem name="Search By Serial" url="viewSearchResults.do" />--%>
        <portal:menuItem name="Manage Account">
            <portal:subMenuItem name="View Account Profile" url="adpeAccountAction.do?method=viewAccountProfile" />
            <portal:subMenuItem name="Add Equipment" url="equipmentItem/viewAddItems.do" />
            <portal:subMenuItem name="Transfer Item" url="equipmentItem/viewTransfer.do" />
            <%--<portal:subMenuItem name="Assign Primary Custodian" url="adpeAccountAction.do?method=viewAssignPrimaryCustodian"/>--%>
            <%--<portal:subMenuItem name="Assign Alternate Custodians" url="adpeAccountAction.do?method=viewAssignAlternateCustodian"/>--%>
        </portal:menuItem>
        <portal:menuItem name="Manage Users" url="#">
            <portal:subMenuItem name="View Users" url="user/view.do"/>
            <portal:subMenuItem name="Inprocess User" url="user/viewInprocess.do" />
            <portal:subMenuItem name="Outprocess User" url="user/viewOutprocess.do" />
<%--            <portal:subMenuItem name="Import Users" url="viewImportUsers.do" />--%>
        </portal:menuItem>
        <portal:menuItem name="Reports" url="#">
            <portal:subMenuItem name="Equipment Report" url="viewEquipmentReport.do"/>
            <portal:subMenuItem name="Discrepancy Report" url="viewDiscrepancyReport.do" />
        </portal:menuItem>
        <portal:menuItem name="DRMO" url="#">
            <portal:subMenuItem name="View DRMO Packages" url="drmo/viewIndex.do" />
            <portal:subMenuItem name="Create Drmo Package" url="drmo/viewCreate.do" />
        </portal:menuItem>
        <portal:menuItem name="ROS" url="#">
            <portal:subMenuItem name="View ROS Packages" url="ros/index.do" />
            <portal:subMenuItem name="Create ROS Package" url="ros/viewCreate.do" />
        </portal:menuItem>
<%--        <portal:menuItem name="Hand Receipt" url="#">
            <portal:subMenuItem name="View Hand Receipts" url="viewHandReceipts.do" />
            <portal:subMenuItem name="Create Hand Receipt" url="viewCreateHandReceipt.do" />
        </portal:menuItem>--%>
    </authz:authorize>
    <authz:authorize ifAnyGranted="ROLE_ADMIN">
        <portal:menuItem name="Admin Tasks" url="#">
            <portal:subMenuItem name="Manage User Accounts" url="accounts/index.do" />
            <portal:subMenuItem name="Manage DRAs" url="admin/dra/viewAll.do"/>
            <portal:subMenuItem name="Manage ADPE Accounts" url="adpeAccountAction.do?method=viewAdpeAccountIndex"/>
            <portal:subMenuItem name="Manage Organizations" url="organizationAction.do?method=viewOrganizationList"/>
            <portal:subMenuItem name="Manage Models" url="itemModelAction.do?method=viewModelIndex" />
            <portal:subMenuItem name="Manage Manufacturers" url="manufacturerAction.do?method=viewManufacturerIndex" />
        </portal:menuItem>
    </authz:authorize>
    <portal:menuItem name="View Personal Profile" url="userAction.do?method=viewUserProfile"/>
</portal:contentMenu>